import request from "@/utils/request";

export default {
  //用户登录
  login(userinfo){
    return request({
      url: `/admin/user/login`,
      method: "POST",
      data :userinfo
    })
  },
  //短信发送接口
  sendCode(phone){
    return request({
      url: `/api/msm/send/${phone}`,
      method: "GET"
    })
  },
  //用户认证接口
  saveUserAuth(userAuth){
    return request({
      url :`/admin/user/auth/userAuth`,
      method: 'POST',
      data: userAuth
    })
  },
  //获取用户id信息Api
  getUserInfo(){
    return request({
      url:'/admin/user/auth/getUserInfo',
      method :'GET'
    })
  },

  //手机号重新绑定微信
  rebinding(userinfo){
    return request({
      url: `/admin/user/rebinding`,
      method: "POST",
      data :userinfo
    })
  },
  //删除过期用户
  deleteUserFile(userInfo){
    return request({
      url: `/admin/user/deleteUserFile`,
      method: "DELETE",
      data :userInfo
    })
  }
}
